import LoginHeader from '@/components/login-header/index'
export default {
  components: {
    LoginHeader,
  },
  data() {
    return {
      codeFinder: '',
    }
  },
  methods: {
    goTo(goal) {
      uni.navigateTo({
        url: goal,
      })
    },
    getPhone(goal) {
      if (this.codeFinder.length !== 11) {
        this.$toast('请输入正确的手机号')
      } else {
        this.goTo(goal)
        uni.setStorage({ key: 'phoneNumber', data: this.codeFinder })
      }
    },
  },
}
